import store from './index'
import {INCREMENT} from './constant.js'
export default {
    add(){
        //创建动作
        const action = {
            type:INCREMENT
        }
        //发送动作
        store.dispatch(action)
    }
}